{% extends 'starter.html' %}

{% block title %}
    <h1>
     编辑客户
      <small>Optional description</small>
    </h1>
{% endblock %}


{% block content %}
    <form class="form-horizontal" novalidate method="post">
    {% for field in customer_form %}
        <div class="form-group">
                <label for="{{ field.id_for_label }}" class="col-sm-2 control-label">{{ field.label }}</label>
                <div class="col-sm-6">
                    {{ field }}
                </div>
                <div class="col-sm-4">
                    {{ field.errors.0 }}
                </div>
            </div>
    {% endfor %}
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-success">保存</button>
            </div>
        </div>
    </form>


{% endblock %}